import request from '../axios/index';

/*
 * /api//api/manage/Information
 * 描述：获取平台信息
 */
export function getmassage(data) {
    return request({
        method: 'post',
        url: '/api/manage/getQuestion',
        data
    });
}//分页

export function getQuestionDetail(id) {
    return request({
        method: 'post',
        url: '/api/manage/getQuestionDetail/'+id,
    });
}//详情页
export function getAllMojorList() {
    return request({
        method: 'post',
        url: '/api/major/getAllMojorList',
    });
}
//获取专业/api/major/getAllMojorList
export function deleteQuestion(id) {
    return request({
        method: 'get',
        url: '/api/manage/deleteQuestion/'+id,
    });
}//删除
export function updateQuestion(data) {
    return request({
        method: 'post',
        url: '/api/manage/updateQuestion',
        data
    });
}//修改题目
export function exportquestmassageInfo(data) {
    return request({
        method: 'post',
        url: '/api/questionBank/export',
        data,
        responseType: 'blob'
    });
}//导出